package com.xunfang.demo;

import com.xunfang.demo.entity.QueryData;
import com.xunfang.demo.entity.UserDemo;
import com.xunfang.demo.service.UserService;
import com.xunfang.demo.service.UserServiceImpl;
import com.xunfang.demo.utils.PageBean;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        PageBean pb = userService.getUserByPB(new QueryData(), 1);
        List<UserDemo> dataList = pb.getDataList();
        for (UserDemo userDemo : dataList) {
            System.out.println(userDemo);
        }
        System.out.println(pb.getPageSize());
        System.out.println(pb.getPageCount());
        System.out.println(pb.getP());
    }
}